
#include "component_drv8833_pro_mini.h"
// #include "component_ir_avoidance.h"
#include "component_ultrasonic.h"
#include "component_dht11.h"
#include "component_softserial.h"
#include "component_display_tm1637.h"
//#include "component_lcd1602a_i2c_dht11.h"
//#include "component_ssd1306.h"

void setup_components()
{

  setup_drv8833();
  // setup_ir_avoidance();
  setup_ultrasonic();
  setup_dht11();
  setup_display_tm1637();
  // setup_lcd1602a_i2c_dht11();
  // setup_ssd1306();
  setup_softserial();
  delay(1000);
}

void loop_components()
{
  loop_drv8833();
  // loop_ir_avoidance();
  loop_ultrasonic();
  loop_dht11();
  loop_display_tm1637();
  // loop_lcd1602a_i2c_dht11();
  // loop_ssd1306(); // include loop read dht11
  loop_softserial();
  delay(20);
}
